package Lono::Action::Base;

use strict;
use warnings;

use Apache::Constants qw( :common );
use Apache::Request;

use Exporter;
our @EXPORT = qw( _get_rest_config );

sub _get_rest_config {
    my $r = shift;
    return {'username'  => $r->dir_config( "ST_USERNAME" ),
            'password'  => $r->dir_config( "ST_PASSWORD" ),
            'server'    => $r->dir_config( "ST_SERVER" ),
            'workspace' => $r->dir_config( "ST_WORKSPACE" )};
}

1;
